from rest_framework import serializers
from apps.UMM.models import CommissionCategory


class CommissionSerializer(serializers.ModelSerializer):
    """佣金序列化器"""

    class Meta:
        model = CommissionCategory
        fields = ['id', 'commission_category', 'commission_ratio']
        read_only_fields = ['id'] 